home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / sio.1.5.6 / suite / testlib < prev    next >
Encoding:
Text File  |  1992-12-09  |  871 b   |  47 lines

  1. #!/bin/sh
  2.  
  3. # (c) Copyright 1992 by Panagiotis Tsirigotis
  4. # All rights reserved.  The file named COPYRIGHT specifies the terms 
  5. # and conditions for redistribution.
  6.  
  7.  
  8. #
  9. # $Id: testlib,v 7.1 1992/06/01 21:38:57 panos Exp $
  10. #
  11.  
  12. #
  13. # Purpose:
  14. #        Invoke the tester script. This is necessary because the tester
  15. #        script requires functions and /bin/sh does not support functions
  16. #        on all OS's. This script decides what shell to use to execute
  17. #        tester. On Suns, it uses /bin/sh. On DECstations, it uses
  18. #        /usr/bin/ksh
  19. #        The decision is made by checking $ARCH
  20. #        
  21.  
  22. case "$ARCH" in
  23.     "")
  24.         echo "ARCH not defined. Please define it."
  25.         exit 1
  26.         ;;
  27.     
  28.     sun4|sun3)
  29.         TESTSHELL=/bin/sh
  30.         LDFLAGS="-Bstatic -lm"
  31.         ;;
  32.  
  33.     dec-mips)
  34.         TESTSHELL=/usr/bin/ksh
  35.         LDFLAGS=
  36.         ;;
  37.  
  38.     *) echo "Unknown architecture: $ARCH"
  39.         exit 2
  40.         ;;
  41. esac
  42.  
  43. export LDFLAGS
  44. export TESTSHELL
  45. $TESTSHELL tester $*
  46.  
  47.